package com.ruoyi.biz.letter.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.biz.letter.read.LevelCategoryConverter;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * @author Fei.Cong
 * @date 2024-07-29 11:25
 */
@Data
public class CategoryBase extends BaseEntity {

    @TableField(exist = false)
    @ExcelIgnore
    private String[] categoryIds;

    /**
     * 分类表id 一级
     */
    @ExcelIgnore
    private Long pCategoryId;

    /**
     * 分类表id 二级
     */
    @ExcelIgnore
    private Long sCategoryId;

    @TableField(exist = false)
    @ExcelProperty(value = "一级分类", converter = LevelCategoryConverter.class)
    private String firstCategoryName;

    @TableField(exist = false)
    @ExcelProperty(value = "二级分类", converter = LevelCategoryConverter.class)
    private String secondCategoryName;

    @TableField(exist = false)
    private List<Long> queryFirstCategoryIds;

    @TableField(exist = false)
    private List<Long> querySecondCategoryIds;

    /**
     * 受理部门
     */
//    @ExcelProperty("受理部门")
    private String acceptDept;

    @TableField(exist = false)
    private List<String> acceptDepts;

    @TableField(exist = false)
    private String isCategory;

}
